﻿using System;
using System.Windows;
using OpenLS.Spreadsheet.UI.Internals;

namespace OpenLS.Spreadsheet.UI
{
    class FormatFormatter: FormatterBase
    {
        private NamedFormat _format;

        public NamedFormat Format
        {
            get { return _format; }
            set
            {
                _format = value;
                SetDirty();} }
        protected override void ApplyOverride(Range selection)
        {
            selection.SetCellValue(CellProperty.Format, this.Format.Format);
        }
    }
}